import 'package:card_topia/design_specifications.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


///功能区item
class FeatureItem extends StatelessWidget {
  const FeatureItem({super.key, required this.label, required this.icon, this.onTap});
  final String label;
  final Widget icon;
  final Function? onTap;
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: (){
        if(onTap!=null){
          onTap!();
        }
      },
      child: Column(
        children: [
          icon,
          SizedBox(height: 8.w,),
          Text(label,style: TextStyle(fontSize: 12.sp,fontFamily: harmony,color: textColor),)
        ],
      ),
    );
  }
}
